﻿<phone:PhoneApplicationPage 
    x:Class="QuickTasks.AddMessages"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:wb="clr-namespace:QuickTasks"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="728"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False"
    Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <!--<RowDefinition Height="Auto"/>-->
        </Grid.RowDefinitions>
        <!--Pivot Control-->

            <phone:Pivot x:Name="pvtMessage" Grid.Row="0">
            <phone:Pivot.Title>
                <StackPanel Orientation="Horizontal"  Grid.Row="0" Margin="12,17,0,28">
                    <TextBlock x:Name="ApplicationTitle"  Text="QUICK TASKS - MESSAGES" Style="{StaticResource PhoneTextNormalStyle}"/>
                </StackPanel>
            </phone:Pivot.Title>

            <phone:PivotItem Header="email" x:Name="pvtitmEmail">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>

                    </Grid.RowDefinitions>
                    <StackPanel Orientation="Horizontal" Grid.Row="0">
                        <TextBlock Text="Subject"   FontSize="28" Margin="10,0,0,0" Width="150"/>
                        <TextBlock Text="Required" x:Name="tblkSubjectValidation" FontSize="28" Foreground="Red" Visibility="Collapsed"/>
                    </StackPanel>
                    <TextBox x:Name="tbxSubject"   Grid.Row="1" InputScope="Text"/>
                    <StackPanel Orientation="Horizontal" Grid.Row="2" Height="70">
                        <TextBlock Text="Select cc"   FontSize="28" Margin="10,20,0,0" Width="250"/>
                        <Image Source="/Images/MobileNoSelection.png"  Width="49" Height="49" MouseLeftButtonDown="imgEmailIdSelection_MouseLeftButtonDown1" Margin="25,0,0,0"/>

                    </StackPanel>

                    <StackPanel Orientation="Horizontal" Grid.Row="3" Height="70">
                        <TextBlock Text="Select Recipient"  FontSize="28" Margin="10,20,0,0" Width="250"/>
                        <TextBlock x:Name="tblkRecipientValidation" FontSize="28" Text="Required" Foreground="Red" Visibility="Collapsed"/>
                        <Image Source="/Images/MobileNoSelection.png"  Width="49" Height="49" MouseLeftButtonDown="imgEmailIdSelection_MouseLeftButtonDown"  Margin="25,0,0,0"/>
                       
                    </StackPanel>
                  
                    <StackPanel Orientation="Horizontal" Grid.Row="4">
                        <TextBlock Text="Message"  FontSize="28" Margin="10,0,0,0" Width="150"/>
                        <TextBlock Text="Required"  x:Name="tblkMessageValidation" Foreground="Red" FontSize="28" HorizontalAlignment="Right" Visibility="Collapsed"/>
                    </StackPanel>
                    <TextBox x:Name="tbxEmailmessage"  InputScope="Text" Height="150" Grid.Row="5"/>
                    <!--<my:AdControl Grid.Row="6" BorderBrush="Transparent" Margin="0,10,0,30" Height="80" HorizontalAlignment="Center" x:Name="adControl4" VerticalAlignment="Top" Width="480" ApplicationId="837a23be-84f9-49b5-8aee-7b64ff04497a" AdUnitId="33457" IsAutoRefreshEnabled="True" />-->
                </Grid>
            </phone:PivotItem>
            <!--Pivot item two-->
            <phone:PivotItem Header="sms" x:Name="pvtitmSMS">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                      
                    </Grid.RowDefinitions>
                    <StackPanel Orientation="Horizontal" Grid.Row="0">
                        <TextBlock Text="Title"  FontSize="28" Width="150" Margin="10,0,0,0"/>
                        <TextBlock Text="Required" FontSize="28" Foreground="Red" x:Name="tblkTitleValidation" Visibility="Collapsed"/>
                    </StackPanel>
                    <TextBox x:Name="tbxTitle" Grid.Row="1" InputScope="Text"/>
                    <StackPanel Orientation="Horizontal" Grid.Row="2" Height="70">
                        <TextBlock Text="Select Recipient"  FontSize="28" Width="250" Margin="10,15,0,0"/>
                        <TextBlock Text="Required" FontSize="28" Foreground="Red" x:Name="tblkRecipientmobileValidation" Visibility="Collapsed" />
                        <Image Source="/Images/MobileNoSelection.png"  Width="49" Height="49" MouseLeftButtonDown="imgMobileSelection_MouseLeftButtonDown"  Margin="25,0,0,0"/>
                      
                    </StackPanel>
                   
                    <StackPanel Orientation="Horizontal" Grid.Row="3" >
                        <TextBlock Text="Message"  FontSize="28" Width="150" Margin="10,0,0,0"/>
                        <TextBlock Text="Required" Foreground="Red" FontSize="28" x:Name="tblkMessagemobileValidation" Visibility="Collapsed" HorizontalAlignment="Right"/>
                    </StackPanel>
                    <TextBox x:Name="tbxMobilemessage"  InputScope="Text" Height="220" Grid.Row="4"/>
                    <!--<StackPanel Name="adstackpanel" Grid.Row="5"  Margin="0,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Top"></StackPanel>-->

                </Grid>
            </phone:PivotItem>
        </phone:Pivot>
        <StackPanel Name="adstackpanel" Grid.Row="1" VerticalAlignment="Bottom" Margin="-15,32,0,0"></StackPanel>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar >
        <shell:ApplicationBar IsVisible="True"  IsMenuEnabled="True">
            <shell:ApplicationBarIconButton  IconUri="/Images/Messagesave.png" Text="save" Click="ApplicationBarIconButton_Click"/>
            
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>